namespace Crux.Core.Dapper;
/// <summary>
/// 
/// </summary>
public interface IExecuteListener
{
    /// <summary>
    ///
    /// </summary>
    /// <param name="connection"></param>
    /// <param name="milliseconds"></param>
    void ConnectionOpened(IDbConnection connection, long milliseconds);
    /// <summary>
    ///
    /// </summary>
    /// <param name="connection"></param>
    /// <param name="milliseconds"></param>
    void ConnectionClosed(IDbConnection connection, long milliseconds);
    /// <summary>
    ///
    /// </summary>
    /// <param name="connection"></param>
    /// <param name="command"></param>
    /// <param name="milliseconds"></param>
    void CommandExecuted(IDbConnection connection, DbCommand command, long milliseconds);
    /// <summary>
    ///
    /// </summary>
    /// <param name="connection"></param>
    /// <param name="command"></param>
    /// <param name="milliseconds"></param>
    void CommandCancelled(IDbConnection connection, DbCommand command, long milliseconds);
}